import request from '@/utils/request'
// 问题列表
export function questionList(data = {}) {
	return request({
		url: '/admin/question/lists',
		method: 'get',
		params: data
	})
}
// 问题详情
export function questionDetail(data = {}) {
	return request({
		url: '/admin/question/detail',
		method: 'get',
		params: data
	})
}
// 问题新增
export function questionAdd(data = {}) {
	return request({
		url: '/admin/question/add',
		method: 'post',
		data
	})
}
// 问题编辑
export function questionEdit(data = {}) {
	return request({
		url: '/admin/question/edit',
		method: 'post',
		data
	})
}
// 问题删除
export function questionDelete(data = {}) {
	return request({
		url: '/admin/question/delete',
		method: 'post',
		data
	})
}

// 获取配置信息
export function getConfig(data = {}) {
	return request({
		url: '/admin/config/list',
		method: 'get',
		params: data
	})
}
// 设置配置信息
export function setConfig(data = {}) {
	return request({
		url: '/admin/config/save',
		method: 'post',
		data
	})
}
// 反馈列表
export function askGetlist(data = {}) {
	return request({
		url: '/Company/Ask/getList',
		method: 'post',
		data
	})
}
// 反馈详情
export function askGetInfo(data = {}) {
	return request({
		url: '/Company/Ask/getInfo',
		method: 'post',
		data
	})
}